package cn.dakaqi.services;

import cn.dakaqi.entities.PassportAppointmentDate;
import cn.dakaqi.utils.exception.ServiceRuntimeException;
import org.springframework.data.domain.Page;

import java.util.List;

/**
 * Copyright: Copyright (c)2016
 * Company: 志愿者打卡器(www.dakaqi.cn)
 * 类名称: PassportAppointmentDateService <br>
 * 类描述: <br>
 *
 * @author: ChunYang.Zhang
 * @since: 2016/10/24 11:29
 * @version: 1.0.0
 */
public interface PassportAppointmentDateService
{
    public void save(Long baseAddressId,String day,String times,int num)throws ServiceRuntimeException;
    public void save(PassportAppointmentDate passportAppointmentDate)throws ServiceRuntimeException;
    public void update(PassportAppointmentDate passportAppointmentDate)throws ServiceRuntimeException;
    public void updateNum(PassportAppointmentDate passportAppointmentDate)throws ServiceRuntimeException;
    List<PassportAppointmentDate> findByDay(Long baseAddressId,String day)throws ServiceRuntimeException;
    List<PassportAppointmentDate> findByBaseaddressId(Long baseAddressId)throws ServiceRuntimeException;
    List<PassportAppointmentDate> findAfterByBaseaddressId(Long baseAddressId,String startDay,String endDay)throws ServiceRuntimeException;
    Page<PassportAppointmentDate> findAll(Long baseAddressId,int pageNumber)throws ServiceRuntimeException;
    PassportAppointmentDate findByDayAndTime(Long baseAddressId,String day,String time)throws ServiceRuntimeException;
}
